﻿using Microsoft.EntityFrameworkCore;

namespace cn.school.api;

public class ManageContextFactory: IDbContextFactory<ManageContext>
{
    private readonly IDbContextFactory<ManageContext> _pooledFactory;

    public ManageContextFactory(IDbContextFactory<ManageContext> pooledFactory)
    {
        _pooledFactory = pooledFactory;
    }

    public ManageContext CreateDbContext()
    {
        return _pooledFactory.CreateDbContext();
    }
}

